﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2006.ShoppingSite.Domain
{
    /// <summary>
    /// 商品信息
    /// </summary>
    [Table("tb_goods")]
    public class GoodsEntity: AuditField<long>
    {
        public int? StoreId { get; set; }//店铺ID
        public Guid BrandId { get; set; }   //品牌
        public Guid CategoryId { get; set; }  //分类
        public string? Description { get; set; } //描述
        public string CoverImg { get; set; } = "default.jpg";//封面图
        public string? Title { get; set; } //标题
        public int ColorId { get; set; } //颜色
        public int SizeId { get; set; } //尺寸
        public decimal SalePrice { get; set; }  //实际售价
        public decimal MartetPrice { get; set; }  //市场标价

        public int Stock { get; set; } //库存（累计库存：每次添加商品的时候，数量累加）
        public int UsableStock { get; set; } //可用库存
        public int LockStock { get; set; } //锁定库存
        public int MinStock { get; set; } //最少库存---预警库存

        //public bool Hot { get; set; } = false;
        //public bool TuiJian { get; set; } = false;


        //第1位代表 ： =1 热点  "10000000"
        //第2位代表： =1 推荐   "01000000"
        // "11000000" 表示即是热点，又是推荐
        //后面6位，预留
        public string Config { get; set; } = "00000000";
    }
}
